<?php
/*
Template Name: comparison Form
Auther: Naseer Ahnad
Created: 10-03-2012
*/
?>
<?php 
get_header(); 

$args=array("parent" => 7, "hide_empty"	=> 0);
$venueTypes = get_categories($args); 

///// get all countries
$args=array("parent" => 3, "hide_empty"	=> 0);
$countries = get_categories($args); 
//$venueArea = $wpdb -> get_results('Select DISTINCT(Area) from comparison', ARRAY_A);

?>

  <div class="main-content-inner global-width">
    
    <section class="contents full-width">
        <h1>Venue Comparision Form</h1>
        <p><strong>Please Note the comparision chart is to provide a guide price only, upgrades and discounts may be available, if interested please contact the venues!</strong></p>
        <form action="http://armchairweddingguru.co.uk/comparison-result/" method="post">
          <table>
            <tr>
              <td>Venue Type:</td>
              <td><select name="venue">
                  <option>Select Type</option>
                  <?php foreach($venueTypes as $type):?>
                  <option value="<?php echo $type->cat_ID ?>">
                  <?php echo $type->cat_name ?>
                  </option>
                  <?php endforeach?>
                </select></td>
            </tr>
            <tr>
              <td>Area:</td>
              <td><select name="area">
                  <option>Select Area</option>
                  <?php foreach($countries as $country):?>
                  <optgroup label="<?php echo $country->cat_name ?>">
                  	<?php	
						$args=array("parent" =>  $country->cat_ID, "hide_empty"	=> 0);
						$cities = get_categories($args); 
						foreach($cities as $city):
					 ?>
                          <option value="<?php echo $city->cat_ID ?>">
                          <?php echo $city->cat_name ?>
                          </option>
                     <?php endforeach; ?>
                  </optgroup>
                  <?php endforeach?>
                </select></td>
            </tr>
          </table><br />

          <table width="100%" border="0" class="nm_tables">
            <tr>
              <td  valign="top"><h2 align="center">Room Options</h2>
                <table>
                <tr>
                  <td>Number Of Guests:</td>
                  <td><select name="guestsRoom">
                      <?php for($i=25;$i<=300; $i+=25):?>
                              <option value="<?php echo $i ?>"><?php echo $i ?></option>
                      <?php endfor; ?>
                    </select></td>
                </tr>

                  <tr>
                    <td>Place of Ceremony:</td>
                    <td><select name="placeOfCeremony">
                        <option value="Yes">Yes</option>
                        <option value="No">No</option>
                      </select>
                      </td>
                  </tr>
                  <tr>
                    <td>Day Reception:</td>
                    <td><select name="dayReception">
                        <option value="Yes">Yes</option>
                        <option value="No">No</option>
                      </select>
                      </td>
                  </tr>
                  <tr>
                    <td>Evening Reception:</td>
                    <td><select name="eveningReception">
                        <option value="Yes">Yes</option>
                        <option value="No">No</option>
                      </select>
                      </td>
                  </tr>
                  <tr>
                    <td>Exclusivity Available:</td>
                    <td><select name="exclusiveAvailable">
                        <option value="Yes">Yes</option>
                        <option value="No">No</option>
                      </select></td>
                  </tr>
                  <tr>
                    <td>Accommodation:</td>
                    <td><select name="accommodation">
                        <option value="Yes">Yes</option>
                        <option value="No">No</option>
                      </select>
                     </td>
                  </tr>
                </table></td>
              <td valign="top"><h2 align="center">Wedding Breakfast</h2>
                <table align="center">
                <tr>
                  <td>Number Of Guests:</td>
                  <td><select name="guestsBreakfast">
                      <?php for($i=25;$i<=300; $i+=25):?>
                              <option value="<?php echo $i ?>"><?php echo $i ?></option>
                      <?php endfor; ?>
                    </select></td>
                </tr>

                  <tr>
                    <td>Arrival Drinks Packages:</td>
                    <td><select name="arrivalDrinks">
                        <option value="No">No</option>
                        <option value="Wine">Wine</option>
                        <option value="Champagne">Champagne</option>
                      </select></td>
                  </tr>
                  <tr>
                    <td>Adult:</td>
                    <td><select name="adultBreakfast">
                        <option value="Yes">Yes</option>
                        <option value="No">No</option>
                      </select>
                   </td>
                  </tr>
                  <tr>
                    <td>Child (0-13):</td>
                    <td><select name="child1Breakfast">
                        <option value="Yes">Yes</option>
                        <option value="No">No</option>
                      </select></td>
                  </tr>
                  <tr>
                    <td>Child (14-17):</td>
                    <td><select name="child2Breakfast">
                        <option value="Yes">Yes</option>
                        <option value="No">No</option>
                      </select></td>
                  </tr>
                  <tr>
                    <td>Toast Drink:</td>
                    <td><select name="toastDrink">
                        <option value="No">No</option>
                        <option value="Wine">Wine</option>
                        <option value="Champagne">Champagne</option>
                      </select>
                  </tr>
                </table></td>
              <td valign="top"><h2 align="center">Evening Buffet</h2>
                <table align="center">
                <tr>
                  <td>Number Of Guests:</td>
                  <td><select name="guestsBuffet">
                      <?php for($i=25;$i<=300; $i+=25):?>
                              <option value="<?php echo $i ?>"><?php echo $i ?></option>
                      <?php endfor; ?>
                    </select></td>
                </tr>
                  <tr>
                    <td>Adult:</td>
                    <td><select name="adultBuffet">
                        <option value="Yes">Yes</option>
                        <option value="No">No</option>
                      </select></td>
                  </tr>
                  <tr>
                    <td>Child (0-13):</td>
                    <td><select name="child1Buffet">
                        <option value="Yes">Yes</option>
                        <option value="No">No</option>
                      </select>
                  </tr>
                  <tr>
                    <td>Child (14-17):</td>
                    <td><select name="child2Buffet">
                        <option value="Yes">Yes</option>
                        <option value="No">No</option>
                      </select>
                  </tr>
                </table></td>
            </tr>
            <tr>
            	<td>&nbsp;</td>
            </tr>
            <tr>
              <td colspan="3" align="center"><input type="submit" value="Compare"  class="search-button" /></td>
            </tr>
          </table>
        </form>
        <div class="clear"></div>
    </section>
    <div class="clearfix"></div>
  </div>

<!-- Main Content Ends -->
</section>
<?php get_footer(); ?>